PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / City / martin - city lights.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=7 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=1.059 |
| 26 | fWaveScale=8.991 |
| 27 | fWaveSmoothing=0.000 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=0.000 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=0.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=0.990 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=200 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.89152 |
| 83 | wavecode_0_smoothing=0.82000 |
| 84 | wavecode_0_r=0.000 |
| 85 | wavecode_0_g=0.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.600 |
| 88 | wave_0_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 89 | wave_0_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 90 | wave_0_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 91 | wave_0_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 92 | wave_0_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 93 | wave_0_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 94 | wave_0_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 95 | wave_0_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 96 | wave_0_init9= |
| 97 | wave_0_per_frame1=t1 = 0; |
| 98 | wave_0_per_point1=row = (t1/2)%2; |
| 99 | wave_0_per_point2=wid = (t1+2)%4; |
| 100 | wave_0_per_point3=dx = 0.014* (row -0.5) + 0.0025* (wid-1.5); |
| 101 | wave_0_per_point4=x = 0.5 + dx; |
| 102 | wave_0_per_point5= |
| 103 | wave_0_per_point6=y = int(t1/4)/50; |
| 104 | wave_0_per_point7=y = y - int(y); |
| 105 | wave_0_per_point8= |
| 106 | wave_0_per_point9=t1 += 1; |
| 107 | wavecode_1_enabled=0 |
| 108 | wavecode_1_samples=512 |
| 109 | wavecode_1_sep=0 |
| 110 | wavecode_1_bSpectrum=0 |
| 111 | wavecode_1_bUseDots=0 |
| 112 | wavecode_1_bDrawThick=0 |
| 113 | wavecode_1_bAdditive=0 |
| 114 | wavecode_1_scaling=0.89152 |
| 115 | wavecode_1_smoothing=1.00000 |
| 116 | wavecode_1_r=1.000 |
| 117 | wavecode_1_g=0.600 |
| 118 | wavecode_1_b=0.000 |
| 119 | wavecode_1_a=1.000 |
| 120 | wave_1_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 121 | wave_1_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 122 | wave_1_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 123 | wave_1_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 124 | wave_1_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 125 | wave_1_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 126 | wave_1_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 127 | wave_1_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 128 | wave_1_init9= |
| 129 | wave_1_per_frame1=trel = q1-.0; |
| 130 | wave_1_per_frame2=t1 = int(trel)/2; |
| 131 | wave_1_per_frame3=t2 = trel - int(trel); |
| 132 | wavecode_2_enabled=0 |
| 133 | wavecode_2_samples=512 |
| 134 | wavecode_2_sep=0 |
| 135 | wavecode_2_bSpectrum=0 |
| 136 | wavecode_2_bUseDots=0 |
| 137 | wavecode_2_bDrawThick=0 |
| 138 | wavecode_2_bAdditive=0 |
| 139 | wavecode_2_scaling=0.01348 |
| 140 | wavecode_2_smoothing=0.00000 |
| 141 | wavecode_2_r=1.000 |
| 142 | wavecode_2_g=0.600 |
| 143 | wavecode_2_b=0.000 |
| 144 | wavecode_2_a=0.310 |
| 145 | wave_2_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 146 | wave_2_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 147 | wave_2_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 148 | wave_2_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 149 | wave_2_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 150 | wave_2_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 151 | wave_2_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 152 | wave_2_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 153 | wave_2_init9= |
| 154 | wave_2_per_frame1=trel = q1-.33; |
| 155 | wave_2_per_frame2=t1 = int(trel)/3; |
| 156 | wave_2_per_frame3=t2 = trel - int(trel); |
| 157 | wave_2_per_frame4= |
| 158 | wave_2_per_frame5= |
| 159 | wave_2_per_frame6= |
| 160 | wavecode_3_enabled=0 |
| 161 | wavecode_3_samples=512 |
| 162 | wavecode_3_sep=0 |
| 163 | wavecode_3_bSpectrum=1 |
| 164 | wavecode_3_bUseDots=0 |
| 165 | wavecode_3_bDrawThick=0 |
| 166 | wavecode_3_bAdditive=0 |
| 167 | wavecode_3_scaling=1.00000 |
| 168 | wavecode_3_smoothing=0.50000 |
| 169 | wavecode_3_r=1.000 |
| 170 | wavecode_3_g=0.600 |
| 171 | wavecode_3_b=0.000 |
| 172 | wavecode_3_a=1.000 |
| 173 | wave_3_per_frame1=trel = q1-.66; |
| 174 | wave_3_per_frame2=t1 = int(trel); |
| 175 | wave_3_per_frame3=t2 = trel - int(trel); |
| 176 | shapecode_0_enabled=1 |
| 177 | shapecode_0_sides=12 |
| 178 | shapecode_0_additive=0 |
| 179 | shapecode_0_thickOutline=0 |
| 180 | shapecode_0_textured=0 |
| 181 | shapecode_0_num_inst=44 |
| 182 | shapecode_0_x=0.200 |
| 183 | shapecode_0_y=0.900 |
| 184 | shapecode_0_rad=0.01000 |
| 185 | shapecode_0_ang=0.00000 |
| 186 | shapecode_0_tex_ang=0.00000 |
| 187 | shapecode_0_tex_zoom=0.85169 |
| 188 | shapecode_0_r=0.000 |
| 189 | shapecode_0_g=1.000 |
| 190 | shapecode_0_b=1.000 |
| 191 | shapecode_0_a=1.000 |
| 192 | shapecode_0_r2=0.000 |
| 193 | shapecode_0_g2=0.000 |
| 194 | shapecode_0_b2=0.000 |
| 195 | shapecode_0_a2=1.000 |
| 196 | shapecode_0_border_r=0.000 |
| 197 | shapecode_0_border_g=0.000 |
| 198 | shapecode_0_border_b=0.000 |
| 199 | shapecode_0_border_a=0.200 |
| 200 | shape_0_per_frame1=sides = 4; |
| 201 | shape_0_per_frame2=nx = instance%6; |
| 202 | shape_0_per_frame3=ny = int (instance/6); |
| 203 | shape_0_per_frame4= |
| 204 | shape_0_per_frame5=if (instance <= 35, |
| 205 | shape_0_per_frame6= x = 0.5 + (nx-3)/4; |
| 206 | shape_0_per_frame7= y = 0.5 + (ny-3)/4; |
| 207 | shape_0_per_frame8= rad = 0.04; |
| 208 | shape_0_per_frame9= r=0; r2 = 0; |
| 209 | shape_0_per_frame10= |
| 210 | shape_0_per_frame11=, |
| 211 | shape_0_per_frame12= if (instance < 38, |
| 212 | shape_0_per_frame13= x = 0.5 - 0.47/q32 * (instance%2-0.5); |
| 213 | shape_0_per_frame14= y = 0.5; |
| 214 | shape_0_per_frame15= rad = 0.06; |
| 215 | shape_0_per_frame16= r=0; r2 = 0.6; |
| 216 | shape_0_per_frame17=, |
| 217 | shape_0_per_frame18= x = 0.5 - 0.0/q32 * (instance%3-1); |
| 218 | shape_0_per_frame19= y = 0.5 - 0.47*(int (instance/3)%2-0.5); |
| 219 | shape_0_per_frame20= rad = 0.06; |
| 220 | shape_0_per_frame21= r=0.5; r2 = 0.3; ang = 0; sides = 4; |
| 221 | shape_0_per_frame22=); |
| 222 | shape_0_per_frame23=); |
| 223 | shape_0_per_frame24= |
| 224 | shape_0_per_frame25=g = 0; g2 = 0; |
| 225 | shape_0_per_frame26=b = nx%2; b2 = !q3 * (instance%4==1); |
| 226 | shape_0_per_frame27=border_b = 1-b; |
| 227 | shape_0_per_frame28=a = 1; |
| 228 | shape_0_per_frame29=a2 = a; |
| 229 | shape_0_per_frame30= |
| 230 | shape_0_per_frame31= |
| 231 | shapecode_1_enabled=1 |
| 232 | shapecode_1_sides=4 |
| 233 | shapecode_1_additive=1 |
| 234 | shapecode_1_thickOutline=1 |
| 235 | shapecode_1_textured=0 |
| 236 | shapecode_1_num_inst=55 |
| 237 | shapecode_1_x=0.600 |
| 238 | shapecode_1_y=0.500 |
| 239 | shapecode_1_rad=0.03300 |
| 240 | shapecode_1_ang=0.00000 |
| 241 | shapecode_1_tex_ang=0.00000 |
| 242 | shapecode_1_tex_zoom=6.16617 |
| 243 | shapecode_1_r=0.400 |
| 244 | shapecode_1_g=1.000 |
| 245 | shapecode_1_b=0.700 |
| 246 | shapecode_1_a=0.900 |
| 247 | shapecode_1_r2=0.000 |
| 248 | shapecode_1_g2=0.000 |
| 249 | shapecode_1_b2=0.000 |
| 250 | shapecode_1_a2=1.000 |
| 251 | shapecode_1_border_r=0.500 |
| 252 | shapecode_1_border_g=0.500 |
| 253 | shapecode_1_border_b=0.500 |
| 254 | shapecode_1_border_a=0.000 |
| 255 | shape_1_per_frame1= |
| 256 | shape_1_per_frame2= |
| 257 | shape_1_per_frame3=x = 0.5 + 0.4*sin(instance*reg01); |
| 258 | shape_1_per_frame4=y = 0.5 + 0.4*sin(instance*reg02); |
| 259 | shape_1_per_frame5= |
| 260 | shape_1_per_frame6=rad = 0.14 + 0.06*sin(instance*324.253); |
| 261 | shape_1_per_frame7= |
| 262 | shape_1_per_frame8=n = instance * 8 + 10000; |
| 263 | shape_1_per_frame9=//x = gmegabuf(n); |
| 264 | shape_1_per_frame10=//y = 1-gmegabuf(n+1); |
| 265 | shape_1_per_frame11=//rad = gmegabuf(n+2); |
| 266 | shape_1_per_frame12=//sides = gmegabuf(n+3); |
| 267 | shape_1_per_frame13= |
| 268 | shape_1_per_frame14= |
| 269 | shape_1_per_frame15=//if (instance%8==0, sides = 20, sides = 4); |
| 270 | shape_1_per_frame16= |
| 271 | shape_1_per_frame17= |
| 272 | shape_1_per_frame18=g=0; g2 = 0 ; |
| 273 | shape_1_per_frame19=r = (instance%2); r2 = 1; |
| 274 | shape_1_per_frame20=b = 0; b2 = 0.5 * (instance%3>=1); |
| 275 | shape_1_per_frame21=a = 1; |
| 276 | shape_1_per_frame22=//rad *= min(1,x*y*4); |
| 277 | shape_1_per_frame23=a2 = a*0.3; |
| 278 | shape_1_per_frame24= |
| 279 | shape_1_per_frame25= |
| 280 | shapecode_2_enabled=0 |
| 281 | shapecode_2_sides=4 |
| 282 | shapecode_2_additive=0 |
| 283 | shapecode_2_thickOutline=0 |
| 284 | shapecode_2_textured=0 |
| 285 | shapecode_2_num_inst=8 |
| 286 | shapecode_2_x=0.873 |
| 287 | shapecode_2_y=0.130 |
| 288 | shapecode_2_rad=0.29166 |
| 289 | shapecode_2_ang=0.00000 |
| 290 | shapecode_2_tex_ang=2.51327 |
| 291 | shapecode_2_tex_zoom=0.74415 |
| 292 | shapecode_2_r=0.000 |
| 293 | shapecode_2_g=0.000 |
| 294 | shapecode_2_b=0.000 |
| 295 | shapecode_2_a=1.000 |
| 296 | shapecode_2_r2=0.000 |
| 297 | shapecode_2_g2=0.000 |
| 298 | shapecode_2_b2=0.000 |
| 299 | shapecode_2_a2=0.400 |
| 300 | shapecode_2_border_r=0.800 |
| 301 | shapecode_2_border_g=0.500 |
| 302 | shapecode_2_border_b=0.000 |
| 303 | shapecode_2_border_a=0.000 |
| 304 | shape_2_per_frame1=x = 0.7 + instance*0.02;; |
| 305 | shape_2_per_frame2=y = 0.75; |
| 306 | shape_2_per_frame3= |
| 307 | shape_2_per_frame4= |
| 308 | shape_2_per_frame5=//r = 0.4; r2 = 0.4; |
| 309 | shape_2_per_frame6=b = 0.3; b2 = b; |
| 310 | shape_2_per_frame7=rad = 0.04; |
| 311 | shapecode_3_enabled=0 |
| 312 | shapecode_3_sides=24 |
| 313 | shapecode_3_additive=1 |
| 314 | shapecode_3_thickOutline=0 |
| 315 | shapecode_3_textured=1 |
| 316 | shapecode_3_num_inst=1 |
| 317 | shapecode_3_x=0.550 |
| 318 | shapecode_3_y=0.350 |
| 319 | shapecode_3_rad=0.09863 |
| 320 | shapecode_3_ang=0.00000 |
| 321 | shapecode_3_tex_ang=0.00000 |
| 322 | shapecode_3_tex_zoom=1.31212 |
| 323 | shapecode_3_r=0.000 |
| 324 | shapecode_3_g=1.000 |
| 325 | shapecode_3_b=0.000 |
| 326 | shapecode_3_a=1.000 |
| 327 | shapecode_3_r2=0.000 |
| 328 | shapecode_3_g2=0.600 |
| 329 | shapecode_3_b2=0.000 |
| 330 | shapecode_3_a2=0.000 |
| 331 | shapecode_3_border_r=0.500 |
| 332 | shapecode_3_border_g=0.500 |
| 333 | shapecode_3_border_b=0.500 |
| 334 | shapecode_3_border_a=0.000 |
| 335 | per_frame_init_1=n = 0; loop (10000, gmegabuf(n)=0; n +=1; ); |
| 336 | per_frame_init_2= |
| 337 | per_frame_init_3=reg01 = int(rand(100)+5); |
| 338 | per_frame_init_4=reg02 = int(rand(100)+10); |
| 339 | per_frame_init_5= |
| 340 | per_frame_init_6=fwx = rand(10); |
| 341 | per_frame_init_7=fwy = rand(10); |
| 342 | per_frame_init_8=zang = rand(6); |
| 343 | per_frame_init_9= |
| 344 | per_frame_init_10=ran1 = -0.5; |
| 345 | per_frame_init_11=trad1 = rand(6); |
| 346 | per_frame_init_12=trad2 = rand(6); |
| 347 | per_frame_1=dt = 1/fps; |
| 348 | per_frame_2=dec_m = 1 - 6*dt; dec_s = 1 - 2*dt; dec_xs = 1-dt; |
| 349 | per_frame_3=vol = bass+mid+treb; |
| 350 | per_frame_4=vol_ = vol_*dec_m + (1-dec_m)*vol; |
| 351 | per_frame_5=is_beat = above(vol, .4+vol_+peak) * above (time, t0+.2); |
| 352 | per_frame_6=t0 = is_beat*time + (1-is_beat)*t0; |
| 353 | per_frame_7=peak = is_beat * vol + (1-is_beat)*peak*dec_m; |
| 354 | per_frame_8=index = (index + is_beat) %32; |
| 355 | per_frame_9=index2 = (index2 + is_beat*bnot(index))%8; |
| 356 | per_frame_10=index3 = (index3 + is_beat* if(bnot(rand(8)%2),-1,1)*bnot(index%16))%6; |
| 357 | per_frame_11= |
| 358 | per_frame_12=num_res = 200; MINBPM = 50; MAXBPM = 200; |
| 359 | per_frame_13=tess = 0; maxind = 0; qavg = 0.001; i=0; |
| 360 | per_frame_14=loop (num_res, |
| 361 | per_frame_15= n = i*8; |
| 362 | per_frame_16= Freq = (i/(num_res-1)+minbpm/(maxbpm-minbpm))*(maxbpm-minbpm)/60; |
| 363 | per_frame_17= Feder = sqr(Freq*6.2832); //Res.f = sqrt (Feder)/2pi (Hz) |
| 364 | per_frame_18= Excite = (vol-vol_); |
| 365 | per_frame_19= gmegabuf (n+4) = gmegabuf(n+2); //alte pos |
| 366 | per_frame_20= gmegabuf (n+1) *= 1-0.2*dt; //damping |
| 367 | per_frame_21= |
| 368 | per_frame_22= EC_Steps = int (20*Freq*dt)+1; |
| 369 | per_frame_23= loop (EC_Steps, // Euler-Cauchy steps |
| 370 | per_frame_24= Kraft = Excite - Feder*gmegabuf(n + 2) ; |
| 371 | per_frame_25= gmegabuf (n+1) += Kraft * dt/EC_Steps; |
| 372 | per_frame_26= gmegabuf (n+2) += gmegabuf(n+1) * dt/EC_Steps; |
| 373 | per_frame_27= ); |
| 374 | per_frame_28= beatcos = gmegabuf(n+1); beatsin = gmegabuf(n+2)*Freq*6.2832; |
| 375 | per_frame_29= quad = sqrt (pow(beatsin,2) + pow(beatcos,2)); |
| 376 | per_frame_30= gmegabuf (n+3) = gmegabuf(n+3) *dec_m + quad* (1-dec_m); |
| 377 | per_frame_31= if (gmegabuf(n+3) > gmegabuf (maxind*8+3), maxind =i,0); |
| 378 | per_frame_32= qavg = qavg+pow (gmegabuf(n+3),2); |
| 379 | per_frame_33= tess += beatsin* pow(gmegabuf(n+3)/gmegabuf(maxind*8+3),1)*5; |
| 380 | per_frame_34= i += 1; |
| 381 | per_frame_35=); |
| 382 | per_frame_36=qavg = sqrt (qavg/num_res); |
| 383 | per_frame_37=certain = gmegabuf(maxind*8+3)/qavg; |
| 384 | per_frame_38=dbl_beat = gmegabuf(maxind*8+2) * gmegabuf (maxind*8+4) < 0; |
| 385 | per_frame_39=bcount += dbl_beat; |
| 386 | per_frame_40=is_rbeat = dbl_beat && (bcount%2==0); |
| 387 | per_frame_41=bcount2 += is_rbeat; |
| 388 | per_frame_42= |
| 389 | per_frame_43=is_rbeat2 =is_rbeat * (bcount%2==0); |
| 390 | per_frame_44=is_rbeat4 =is_rbeat * (bcount%4==0); |
| 391 | per_frame_45=is_rbeat8 =is_rbeat * (bcount%8==0); |
| 392 | per_frame_46=Freq = (maxind/(num_res-1)+minbpm/(maxbpm-minbpm))*(maxbpm-minbpm)/60; |
| 393 | per_frame_47=Freq_ = Freq_* dec_s + (1-dec_s)*Freq; |
| 394 | per_frame_48=trad1 = trad1 + Freq_*dt*6.28/8; |
| 395 | per_frame_49= |
| 396 | per_frame_50=speed_ = speed_*dec_xs + (1-dec_xs)*Freq_*1.2; |
| 397 | per_frame_51= |
| 398 | per_frame_52=trig = (index==4) && is_beat; |
| 399 | per_frame_53=if (trig, dyang = 0.007*(rand(100)-50)* rand(10)/10, 0); |
| 400 | per_frame_54=pyr = pyr*dec_xs + (1-dec_xs)*dyang; |
| 401 | per_frame_55=pyr2 = pyr2*dec_xs + (1-dec_xs)*pyr; |
| 402 | per_frame_56= |
| 403 | per_frame_57=test = 0; |
| 404 | per_frame_58=fwx = fwx + (speed_)* sin(zang+test)*0.02/fps; |
| 405 | per_frame_59=fwy = fwy + (speed_)* cos(zang+test)*0.02/fps; |
| 406 | per_frame_60= |
| 407 | per_frame_61=//############################################# |
| 408 | per_frame_62=q5 = fwx; q6 = fwy; q7 = 0.3; |
| 409 | per_frame_63= |
| 410 | per_frame_64=yang = pyr2; |
| 411 | per_frame_65=trig = is_beat * (index==26); |
| 412 | per_frame_66=ran1 = if (trig, int(rand(4))*-0.7/3-0.08, ran1); |
| 413 | per_frame_67=xang = ran1; |
| 414 | per_frame_68=xang = -0.7 * (1.1-pow(cos(trad1/16),12)); |
| 415 | per_frame_69=zang = zang + yang/6/fps*speed_/xang; |
| 416 | per_frame_70=pos_x = 0; |
| 417 | per_frame_71=pos_y = 0; |
| 418 | per_frame_72=pos_z = 0.24* (1+0.125*sin(2*zang))* aspecty*( 1.5- abs(xang)/2); |
| 419 | per_frame_73=q30 = .1/pos_z*cos(xang); |
| 420 | per_frame_74= |
| 421 | per_frame_75=ox = -pos_x; oy = -pos_y; oz = pos_z; |
| 422 | per_frame_76=mx = ox*cos(zang) - oy*sin(zang); |
| 423 | per_frame_77=my = ox*sin(zang) + oy*cos(zang); |
| 424 | per_frame_78=ox = mx;oy = my; |
| 425 | per_frame_79=mx = ox*cos(yang) + oz*sin(yang); |
| 426 | per_frame_80=mz = - ox*sin(yang) + oz*cos(yang); |
| 427 | per_frame_81=ox = mx;oz = mz; |
| 428 | per_frame_82=my = oy*cos(xang) - oz*sin(xang); |
| 429 | per_frame_83=mz = oy*sin(xang) + oz*cos(xang); |
| 430 | per_frame_84=oy = my;oz = mz; |
| 431 | per_frame_85=q11=ox; q12 = oy; q13 = oz; //Position |
| 432 | per_frame_86= |
| 433 | per_frame_87=//Vektor x nach rechts |
| 434 | per_frame_88=ox = 1; oy = 0; oz = 0; |
| 435 | per_frame_89=mx = ox*cos(zang) - oy*sin(zang); |
| 436 | per_frame_90=my = ox*sin(zang) + oy*cos(zang); |
| 437 | per_frame_91=ox = mx;oy = my; |
| 438 | per_frame_92=mx = ox*cos(yang) + oz*sin(yang); |
| 439 | per_frame_93=mz = - ox*sin(yang) + oz*cos(yang); |
| 440 | per_frame_94=ox = mx;oz = mz; |
| 441 | per_frame_95=my = oy*cos(xang) - oz*sin(xang); |
| 442 | per_frame_96=mz = oy*sin(xang) + oz*cos(xang); |
| 443 | per_frame_97=oy = my;oz = mz; |
| 444 | per_frame_98=q14=ox; q15 = oy; q16 = oz; |
| 445 | per_frame_99= |
| 446 | per_frame_100=//Vektor z nach hinten |
| 447 | per_frame_101=ox = 0; oy = 0; oz = 1;; |
| 448 | per_frame_102=mx = ox*cos(zang) - oy*sin(zang); |
| 449 | per_frame_103=my = ox*sin(zang) + oy*cos(zang); |
| 450 | per_frame_104=ox = mx;oy = my; |
| 451 | per_frame_105=mx = ox*cos(yang) + oz*sin(yang); |
| 452 | per_frame_106=mz = - ox*sin(yang) + oz*cos(yang); |
| 453 | per_frame_107=ox = mx;oz = mz; |
| 454 | per_frame_108=my = oy*cos(xang) - oz*sin(xang); |
| 455 | per_frame_109=mz = oy*sin(xang) + oz*cos(xang); |
| 456 | per_frame_110=oy = my; |
| 457 | per_frame_111=oz = mz; |
| 458 | per_frame_112=q17=ox; q18 = oy; q19 = oz; |
| 459 | per_frame_113= |
| 460 | per_frame_114=q20 = xang; |
| 461 | per_frame_115=q21 = yang; |
| 462 | per_frame_116=q22 = zang; |
| 463 | per_frame_117= |
| 464 | per_frame_118=q32 = aspecty; |
| 465 | per_frame_119=q4 = min(max(0,vol-vol_),4); |
| 466 | per_frame_120=q4 *= max(0,3*cos(trad1)-2)*8; |
| 467 | per_frame_121= |
| 468 | per_frame_122=q2 = is_rbeat; |
| 469 | per_frame_123=q3 = gmegabuf(maxind*8+2)>0; |
| 470 | per_frame_124=//q3 = bcount2%2; |
| 471 | per_frame_125=monitor = freq_*60; |
| 472 | per_pixel_1=zoom = 1; rot = 0; dx = 0; dy = 0; warp = 0.002; |
| 473 | warp_1=`#define sat saturate |
| 474 | warp_2=`sampler sampler_pw_noise_lq; |
| 475 | warp_3=`float streetx, streety,streetr,street; |
| 476 | warp_4=`float2 uv0, uv1, uv2, uv3; |
| 477 | warp_5=` |
| 478 | warp_6=`shader_body { |
| 479 | warp_7=`//uv = uv_orig; |
| 480 | warp_8=`uv1 = (uv-.5); |
| 481 | warp_9=`uv2 = sin(uv*3.1416*2)/2; |
| 482 | warp_10=` |
| 483 | warp_11=`float p1 = 100; |
| 484 | warp_12=`float p2 = 2; |
| 485 | warp_13=`streetx = 1- min(sat(p1*abs(uv2.x) -p2),sat(2*p1*abs(abs(uv1.x)-0.25)-p2)); |
| 486 | warp_14=`streety = 1- min(sat(p1*abs(uv2.y) -p2),sat(2*p1*abs(abs(uv1.y)-0.25)-p2)); |
| 487 | warp_15=`streetr = 1- sat(p1*abs(rad/aspect.y*1.07-0.5) -p2*1.75); |
| 488 | warp_16=` |
| 489 | warp_17=`street = max(streetx,streety); |
| 490 | warp_18=`street = max(street,streetr); |
| 491 | warp_19=` |
| 492 | warp_20=`float3 orig = 0.08; |
| 493 | warp_21=` |
| 494 | warp_22=`uv2 = (uv-0.3).yx*2; |
| 495 | warp_23=`float3 copy = lerp (GetPixel(uv2), GetBlur1(uv2),0); |
| 496 | warp_24=`ret.r = lerp (orig,copy,0.5) ; |
| 497 | warp_25=` |
| 498 | warp_26=`//Kreisverkehr |
| 499 | warp_27=`uv3 = float2 (rad/aspect.y*1.07, ang/4*2); |
| 500 | warp_28=`uv3.y += (int(uv3.x*64)%8-4)*-0.024*time; |
| 501 | warp_29=`ret.b = ((1*tex2D (sampler_pw_noise_lq, uv3).r) > 0.95) *(streetr>0.99) * 0.8;; |
| 502 | warp_30=` |
| 503 | warp_31=` |
| 504 | warp_32=`//horizontale Fahrtrichtung |
| 505 | warp_33=`uv3 = uv_orig*texsize.xy*texsize_noise_lq.zw*float2(0.5,1); |
| 506 | warp_34=`uv3.x += (int(uv_orig.y*texsize_noise_lq.y)%8-4)*time*.015; |
| 507 | warp_35=`ret.b += ((1*tex2D (sampler_pw_noise_lq, uv3).r) > 0.94)* (streety>0.99) ;; |
| 508 | warp_36=` |
| 509 | warp_37=`//vertikale Fahrtrichtung |
| 510 | warp_38=`uv3 = uv_orig*texsize.xy*texsize_noise_lq.zw*float2(1,0.5); |
| 511 | warp_39=`uv3.y += (int(uv_orig.x*texsize_noise_lq.x)%8-4)*time*.023; |
| 512 | warp_40=`ret.b += ((1*tex2D (sampler_pw_noise_lq, uv3).r) > 0.94)* (streetx>0.99) ;; |
| 513 | warp_41=` |
| 514 | warp_42=` |
| 515 | warp_43=`//Lichter |
| 516 | warp_44=`ret.b += (frac(32*ret.r+time*0.002)>0.95) * !street*0.7; |
| 517 | warp_45=`ret.b += street*0.15; |
| 518 | warp_46=` |
| 519 | warp_47=`ret.b = max (ret.b*1, GetPixel(uv).b *0.75 * (GetPixel(uv).b > 0)); |
| 520 | warp_48=`ret.r = ret.r*(1-street) ; |
| 521 | warp_49=` |
| 522 | warp_50=` |
| 523 | warp_51=` |
| 524 | warp_52=`} |
| 525 | comp_1=`sampler sampler_pw_noise_lq; |
| 526 | comp_2=`static const float quality = 5, depth = q30, z0=4, scale = 1.0/quality*-depth/z0; |
| 527 | comp_3=`float3 neu, rsl, rsl0, rsl00, screen3; |
| 528 | comp_4=`float2 uv0, uv1, uv2, uv4, uv5, rsk, dz1; |
| 529 | comp_5=`float lprof,noise,cloud,gmask,dx,dy,test,tmp; |
| 530 | comp_6=`static float lav_gnd = 0; |
| 531 | comp_7=`static float3 mov = float3 (q5,q6, q7); |
| 532 | comp_8=`static float3 t = float3(q14,q15,q16); |
| 533 | comp_9=`static float3 s = float3(q17,q18,q19); |
| 534 | comp_10=`static float3 ts = -cross(s,t); |
| 535 | comp_11=`static float3 pos = float3 (q11,q12,q13); |
| 536 | comp_12=` |
| 537 | comp_13=`float3 project (float gnd) { float z; |
| 538 | comp_14=` z = -1/mul(cross(ts,-t),screen3); z = z-gnd ; |
| 539 | comp_15=` gmask = (z >= -6) * (z <= 6); |
| 540 | comp_16=` return float3(mul(float2x3(ts,t),cross(pos,screen3))*z*gmask*aspect.yx,-z);} |
| 541 | comp_17=` |
| 542 | comp_18=`float3 GetBlur0 ( float2 uvi) {float3 tmp; |
| 543 | comp_19=` tmp = GetPixel(uvi) + GetPixel (uvi+texsize.zw*float2(1,0)) |
| 544 | comp_20=` + GetPixel (uvi+texsize.zw*float2(-1,0)) + GetPixel (uvi+texsize.zw*float2(0,1)) |
| 545 | comp_21=` + GetPixel (uvi+texsize.zw*float2(0,-1)); |
| 546 | comp_22=` return lerp (tmp*0.2, GetBlur1(uvi), 1);} |
| 547 | comp_23=` |
| 548 | comp_24=`shader_body { |
| 549 | comp_25=`//uv += 0.01*sin(7*length(uv-0.5)-q2) * normalize(uv-0.5); |
| 550 | comp_26=`screen3 = float3 ((uv-float2(.5,.5))*aspect.xy,1);//wirkt wie zoom / Tele ### |
| 551 | comp_27=` |
| 552 | comp_28=`lav_gnd = -0.022; //##### |
| 553 | comp_29=` for (int m=1; m <= quality; m++) { |
| 554 | comp_30=` rsl = (project (lav_gnd)+float3 (mov)); |
| 555 | comp_31=` lprof = floor(z0*1-2*z0*GetPixel(rsl.xy).r )*scale ; |
| 556 | comp_32=` lav_gnd += lprof; |
| 557 | comp_33=` } |
| 558 | comp_34=`rsl = project (lav_gnd)+ mov; //####### |
| 559 | comp_35=`float streetlevel = saturate(-10*depth-12*lav_gnd); |
| 560 | comp_36=`float cmask = streetlevel > 0.05; |
| 561 | comp_37=` |
| 562 | comp_38=`float3 backnoise = lerp (tex2D (sampler_noise_hq,(rsl.xy)/6), 0.5, 0.2); |
| 563 | comp_39=`float3 lights = .1/length(cos(rsl.xy*26+rand_preset.xy*1.1))* backnoise; |
| 564 | comp_40=` |
| 565 | comp_41=`float d = 0.0008; |
| 566 | comp_42=`dy = GetPixel(rsl.xy+d) - GetPixel(rsl.xy-d); |
| 567 | comp_43=`dy += (GetPixel(rsl*3+d) - GetPixel(rsl*3-d))*saturate(lav_gnd/depth+1)/2; |
| 568 | comp_44=` |
| 569 | comp_45=`rsl00 = project (-depth); |
| 570 | comp_46=`rsl0 = rsl00+mov; |
| 571 | comp_47=`ret = saturate(dy)*lights* (0.2+tex2D(sampler_noise_hq,rsl0.xy*0.06).r)*14; |
| 572 | comp_48=`ret += lights*saturate(-6*lav_gnd* (rand_preset.x+0.2))*3; |
| 573 | comp_49=` |
| 574 | comp_50=`ret *= 1+12*GetBlur0(frac(rsl0.xy)).b *saturate(streetlevel*2); |
| 575 | comp_51=`float3 car = GetPixel(frac(rsl0.xy)).b; |
| 576 | comp_52=`if (GetPixel(rsl0.xy).r >0.1) {car *= tex2D(sampler_noise_lq,rsl0.xy)*2;}; |
| 577 | comp_53=`ret += car * cmask; |
| 578 | comp_54=` |
| 579 | comp_55=`//distant fog |
| 580 | comp_56=`ret = lerp (ret, float3(0.2,0.1,0), saturate(pow(rsl0.z/3,2))); |
| 581 | comp_57=` |
| 582 | comp_58=`float flash = 0.02/length(sin(6*rsl0.xy+2*dy+3*rand_frame.zx)); |
| 583 | comp_59=`ret += flash*saturate(0.2-4*lav_gnd)* q4 * float3(0.2,.5,1) *(1-uv.y); |
| 584 | comp_60=`//ret += q2 * (lav_gnd + dy) * float3 (0,0.5,1) * (1-uv.y); |
| 585 | comp_61=`//ret = GetPixel(uv); |
| 586 | comp_62=` |
| 587 | comp_63=`} |
| 588 | comp_64=` |
| 589 | comp_65=`written by martin |
| 590 | comp_66=`END |